package com.qijian.business.domain.query;

import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;


/**
 * 销售退货对象 查询条件类
 *
 * @author qijian
 * @date 2021-09-03
 */

@Data
@ToString
@TableName("sm_sales_returns")
public class SalesReturnsQuery {

    @WhereType(tableName = "sm_sales_returns", filed = "id")
    private Long id;
    @WhereType(tableName = "sm_sales_returns", filed = "name")
    private String name;
    @WhereType(tableName = "sm_sales_returns", filed = "number")
    private String number;
    @WhereType(tableName = "sm_sales_returns", filed = "type")
    private Integer type;
    @WhereType(tableName = "sm_sales_returns", filed = "customer_id")
    private Long customerId;
    @WhereType(tableName = "sm_sales_returns", filed = "customer_name")
    private String customerName;
    @WhereType(tableName = "sm_sales_returns", filed = "contract_sales_id")
    private Long contractSalesId;
    @WhereType(tableName = "sm_sales_returns", filed = "contract_sales_name")
    private String contractSalesName;
    @WhereType(tableName = "sm_sales_returns", filed = "refund_plan")
    private Integer refundPlan;
    @WhereType(tableName = "sm_sales_returns", filed = "salesman_id")
    private Long salesmanId;
    @WhereType(tableName = "sm_sales_returns", filed = "salesman_name")
    private String salesmanName;
    @WhereType(tableName = "sm_sales_returns", filed = "sales_returns_time")
    private Date salesReturnsTime;
    @WhereType(tableName = "sm_sales_returns", filed = "creator_id")
    private Long creatorId;
    @WhereType(tableName = "sm_sales_returns", filed = "creator_name")
    private String creatorName;
    @WhereType(tableName = "sm_sales_returns", filed = "creation_date")
    private Date creationDate;
    @WhereType(tableName = "sm_sales_returns", filed = "total_count")
    private Long totalCount;
    @WhereType(tableName = "sm_sales_returns", filed = "total_amount")
    private BigDecimal totalAmount;
    @WhereType(tableName = "sm_sales_returns", filed = "remark")
    private String remark;

    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private Set<Long> ids;
}
